package org.genko.model;

import java.io.InputStream;
/***
 * Provides methods to parse Schemas
 * @author Israel Chapa
 */
public interface SchemaBuilder
{
	/**
	 * Compiles a Scheme from an input stream
	 * @param input the input stream to parse
	 * @param handler the handler 
	 * @return the compiled Scheme
	 */
	Scheme parseScheme(InputStream input, MemberEventHandler handler);

	/**
	 * Compiles a ModelScheme from an input stream
	 * @param input the input stream to parse
	 * @param handler the handler
	 * @return the compiled ModelSchema
	 */
	ModelSchema parseModelSchema(InputStream input, MemberEventHandler handler);
}